<?php

// $Id$


require_once($WSC->get_site_inc_dir().'modules/admin_panel/site_admin_ajax_grid_ctrl_ua.class.php');
require_once($WSC->get_site_inc_dir().'modules/admin_panel/grids/admin_user_log/admin_user_log_grid_ctrl.class.php');


class Admin_User_Log_Grid_Ajax_Ctrl extends Site_Admin_Ajax_Grid_Ctrl_UA {

	protected function create_grid_ctrl() {
		$context = $this->get__context();
		if ($context->exists_in_get('user')) {
			$user_id = $context->get_from_get('user');
		} else {
			throw new Tangra_User_Exception('Expecting "user" parameter.');
		}


		$tvm = $this->get_tvm();
		$ret = new Admin_User_log_Grid_Ctrl('admin_user_log', $tvm, Tangra_Parameter_Method::GET, $user_id);

		return $ret;
	}
}